package abg.core.domain.db;

import abg.core.common.mybatis.config.FieldInsert;
import abg.core.common.mybatis.config.FieldSet;
import abg.core.common.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 文件资源
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "a_file", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class AaFile extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //任务ID
    private String taskId;

    //任务类型；教师任务0；部门任务1
    private String taskType;

    //课程编号
    private String cjNumber;

    //课程编号
    private String kcNumber;

    //教师编号
    private String jsNumber;

    //开课部门编码
    private String bmCode;

    //备注
    private String remark;

    //文件名
    private String name;

    //原始名称
    private String originName;

    //文件上传人
    private String uploadUserId;

    //访问域名
    private String domain;

    //bucket名称；默认为空
    private String bucket;

    //访问URI路径
    private String uri;

    //文件大小
    private Long size;

    //文件类型
    private String fileType;

    //业务类型
    private String bType;

    //文件MD5
    private String md5;

}
